package com.vidyu.datalayer.dataaccesscomponents;

import com.vidyu.businesslayer.businessentities.Contractor;
import com.vidyu.businesslayer.businessentities.Employer;
import com.vidyu.businesslayer.businessentities.MonitorEvent;

/**
 * Created by IntelliJ IDEA.
 * User: eyalsa
 * Date: 28/02/12                                        \
 * Time: 14:37
 * Dao object for MonitorEvent
 */
public interface ContractorDao {
    long save(Contractor contractor);
    void update(Contractor contractor);
    Contractor findById(long id);
    Contractor getContractorByEmail(String email);
    Contractor getContractorByEmailAndPassword(String email, String password);

}
